import { http } from "@/utils/http";
import { Result, arrayResult } from "../types";

export type racksData = {
    id?: number,
    code?: string,
    racksid?: number,
    layer?: number,
    column?: number,
    state?: number,
    attribute?: number,
    AuxiliaryName?: string,
    lochigh?: number,
    batch?: string,
    sort?: number,
    note?: string
};

type racksSearch = {
    code?: string,
    state?: number,
    rackid?: number,
    category?: number,
    pageNumber: number,
    pageSize: number,
    sortName: string,
    sortType: number
}

// 站点select
export const GetAllStation = (type?: number) => {
    let params = { stationType: type, status: 1 }
    return http.request<arrayResult>("get", "/api/station/GetAllStation", { params });
};